<?php
	require_once('config.php');
	require_once('database.php');
	
	db_setup();
	
	$query = "SELECT username FROM ".$table_prefix."_users WHERE username LIKE '%".$_GET['term']."%' LIMIT 0, 6;";
	$result = db_query_as_array($query);

	echo json_encode($result);
?>